module Skit
  module Log4r
    module Gelf
      class Initializer
        def self.run(environment)
          configuration = Configuration.new
          yield configuration if block_given?
          configuration.validate!

          Skit.logger = configuration.configure!(environment)
        end
      end
    end
  end
end
